home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / tcl / tclmotif.1 / tclmotif / tm.1.2 / src / Imakefile next >
Encoding:
Makefile  |  1994-06-03  |  3.7 KB  |  159 lines

  1. /* set your compiler here if you want to override the default setup */
  2. /* CC = gcc */
  3.  
  4. /* add any extra load flags such as -static or -g .
  5.    Don't remove the -L. - this is used to pick up libtclMotif.a
  6.    in this directory instead of (possibly old) library in USRLIBDIR */
  7. LOCAL_LDFLAGS =  -L. #-static -g
  8.  
  9. /* Include files for tcl, Motif and the Send package.
  10.    Change the first two as needed (SEND is included in this package)
  11.  */
  12. TCL_INCLUDE   = /usr/local/include
  13. MOTIF_INCLUDE = /usr/local/include
  14. SEND_INCLUDE  = ../send
  15.  
  16. /* The corresponding libraries.
  17.    Change the first two as needed by setting the -L option 
  18.  */
  19. TCL_LIB   = -ltcl -lm
  20. #if ProjectX < 6
  21. MOTIF_LIB = -lXm -lXt -lX11
  22. #else
  23. MOTIF_LIB = -lXm -lXt -lSM -lICE -lX11
  24. #endif
  25.  
  26. SEND_LIB  = -L../send -ltclXtSend
  27. TM_LIB    = -L./ -ltclMotif
  28.  
  29. /* what type of libraries do you want? */
  30. #define DoNormalLib YES
  31. #define DoSharedLib NO
  32.  
  33. /* simple -g debugging flag - set to YES or NO */
  34. #define Debug NO
  35.  
  36. /* Connor Cahil's dbmalloc debugging malloc library.
  37.    Worked fine on a Sun (renamed malloc.h to dbmalloc.h)
  38.    - set to YES or NO
  39.  */
  40. #define ConnorDebug NO
  41.  
  42. /*  Mark Moraes' debugging malloc library.
  43.     Worked fine under Linux (renamed malloc.h to dbmalloc.h)
  44.    - set to YES or NO
  45.  */
  46. #define MoraesDebug NO
  47.  
  48. /* Checker lib for Linux
  49.    Still doesn't work for me
  50.  */
  51. #define CheckerDebug NO
  52.  
  53. /* define this if you want the obsoleted main.c rather than
  54.    the super-duper tcl extension method now used
  55.  */
  56. /* #define OLD_MAIN */
  57.  
  58.  
  59. /***************************************************************************
  60.  * Only look below here if you want to change the debugging options, 
  61.  * or where the debugging mallocs are located.
  62.  ***************************************************************************/
  63.  
  64. #include <Library.tmpl>
  65.  
  66. #if Debug
  67. EXTRA_DEFINES = -g
  68. #endif
  69.  
  70. #if ConnorDebug
  71. CDEBUGFLAGS = -g -DDEBUG_MALLOC
  72. /* set the -I, -L options to where the include and lib files are */
  73. EXTRA_DEFINES = -I/usr/local/include
  74. DEBUG_LIB = -L/usr/local/include -ldbmalloc
  75. #endif
  76.  
  77. #if MoraesDebug
  78. CDEBUGFLAGS = -g -DDEBUG_MALLOC
  79. /* set the -I, -L options to where the include and lib files are */
  80. EXTRA_DEFINES = -I../../malloc
  81. DEBUG_LIB = -L../../malloc -lmalloc_d
  82. #endif
  83.  
  84. #if CheckerDebug
  85. CDEBUGFLAGS = -g -checker
  86. DEBUG_LIB = /usr/lib/libchecker.o
  87. #endif
  88.  
  89. /***************************************************************************
  90.  * No changes should be required below here
  91.  ***************************************************************************/
  92.  
  93. INCLUDES = -I$(TCL_INCLUDE) -I$(MOTIF_INCLUDE) -I$(SEND_INCLUDE)
  94. LOCAL_LIBRARIES = $(TM_LIB) $(SEND_LIB) $(DEBUG_LIB) $(TCL_LIB) $(MOTIF_LIB)
  95.  
  96. OBJS1 = tmBasic.o \
  97.     tmCreateWidget.o \
  98.     tmCommands.o \
  99.     tmDrag.o \
  100.     tmTclCommands.o \
  101.     tmExpand.o \
  102.     tmWidget.o \
  103.     tmUtils.o \
  104.     tmConverters.o \
  105.     tmResources.o \
  106.     tmResult.o 
  107.  
  108. #ifdef OLD_MAIN
  109. OBJS = tmMain.o 
  110. #else
  111. OBJS = tmAppInit.o 
  112. #endif
  113.  
  114. SRCS =    tmMain.c \
  115.     tmAppInit.c \
  116.     tmCreateWidget.c \
  117.     tmCommands.c \
  118.     tmDrag.c \
  119.     tmTclCommands.c \
  120.     tmExpand.c \
  121.     tmWidget.c \
  122.     tmUtils.c \
  123.     tmConverters.c \
  124.     tmResources.c \
  125.     tmResult.c 
  126.  
  127. DEPLIBS = $(OBJS1)
  128.  
  129. DEFINES = -DTM_LIBRARY=\".\" -DTM_VERSION=\"1.2\"
  130.  
  131. #ifndef LibraryObjectRule
  132. #define LibraryObjectRule() /* not found in R4! */
  133. #endif
  134.  
  135. LibraryObjectRule()
  136.  
  137. #if DoNormalLib
  138. #if ProjectX < 6 || !DoSharedLib
  139. NormalLibraryTarget(tclMotif,$(OBJS1))
  140. #else
  141. UnsharedLibraryTarget(tclMotif,$(OBJS1),unshared,..)
  142. #endif
  143. InstallLibrary(tclMotif,$(USRLIBDIR))
  144. #endif
  145.  
  146. #if DoSharedLib
  147. #if DoNormalLib && (ProjectX < 6)
  148. SharedLibraryTarget(tclMotif,1.2,$(OBJS1),shared,..)
  149. #else
  150. SharedLibraryTarget(tclMotif,1.2,$(OBJS1),.,.)
  151. #endif
  152. InstallSharedLibrary(tclMotif,1.2, $(USRLIBDIR))
  153. #endif
  154.  
  155.  
  156. ComplexProgramTarget(moat)
  157.  
  158. DependTarget()
  159.